//
//  MainTBC.m
//  PBHome_Example
//
//  Created by 曹连华 on 2020/4/2.
//  Copyright © 2020 clh2046@163.com. All rights reserved.
//

#import "MainTBC.h"
#import <ServiceCode/Router.h>
#import <PBHome/PBHome.h>
@interface MainTBC ()

@end

@implementation MainTBC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initUI];
}

- (void)initUI {
    self.view.backgroundColor = [UIColor greenColor];
    
    HomeVC *homeVC = [HomeVC new];//[[Router sharedInstance]nativeCallWithKey:@"homevc"];
    BaseNC *homeNC = [[BaseNC alloc]initWithRootViewController:homeVC];
    UITabBarItem *homeBarItem = [[UITabBarItem alloc]initWithTitle:@"首页" image:[[UIImage imageNamed:@"tab_home_normal"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:[[UIImage imageNamed:@"tab_home_selected"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
    [homeBarItem setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor blackColor]} forState:UIControlStateSelected];
    [homeBarItem setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor blackColor]} forState:UIControlStateNormal];
    homeNC.tabBarItem = homeBarItem;
    

    [self setViewControllers:@[homeNC]];
    
}

@end
